package pojo;

public class User {

    public User(){
        System.out.println("user无参构造方法");
    }

    public User(String name,String name2,int age){
        this.name = name;
        this.name2 = name2;
        this.age = age;
        System.out.println("user有参构造方法" + this.name+ this.name2+ this.age);
    }
    private String name;

    private String name2;
    private int age;

    private boolean isMan;

    public String getName2() {
        return name2;
    }

    public void setName2(String name2) {
        this.name2 = name2;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }


    public boolean isMan() {
        return isMan;
    }

    public void setMan(boolean man) {
        isMan = man;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void show(){
        System.out.println("Hello, fengliang" + this.name + this.name2 + this.age);
    }

    public void showName(){
        System.out.println("Hello, fengliang and" + this.name + this.name2 + this.age);
    }
}
